package com.david.IfaceAutoTest.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 接口interface_body
 * </p>
 *
 * @author david
 * @since 2021-12-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("interface_body")
@ApiModel(value="InterfaceBody对象", description="接口interface_body")
public class InterfaceBody extends Model<InterfaceBody> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "接口id")
    private Integer interfaceId;

    @ApiModelProperty(value = "模式")
    private String bodyMode;

    @ApiModelProperty(value = "值")
    private String modeValue;

    @ApiModelProperty(value = "格式类型")
    private String bodyOptions;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    @TableLogic
    private Integer isDel;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
